from django.db import models

# Create your models here.

class AnchorInfo(models.Model):
    id = models.CharField(max_length=20, primary_key=True, verbose_name='主播id')
    aNickname = models.CharField(max_length=50, verbose_name='主播昵称')
    aPortrait = models.CharField(max_length=200, verbose_name='主播头像')
    aFans = models.CharField(max_length=20, verbose_name='主播粉丝量')
    aInstitution = models.CharField(max_length=10, verbose_name='主播所属机构')

class AnchorDetail(models.Model):
    anchor_id = models.OneToOneField(to='AnchorInfo', on_delete=models.CASCADE)

    aNumberCooperative = models.IntegerField(verbose_name='合作任务数')
    aServiveType = models.CharField(max_length=50, verbose_name='服务类型')
    aServiceScore = models.DecimalField(max_digits=2, decimal_places=1, verbose_name='服务评分')
    aMissionCmpRate = models.CharField(max_length=10, verbose_name='任务完成率')
    aVerticalField = models.CharField(max_length=50, verbose_name='垂直领域')
    aComprehensiveAbility = models.CharField(max_length=10, verbose_name='达人综合能力指数')
    aIntroduce = models.TextField(verbose_name='自我介绍')

    aContentInteracte_Visit = models.CharField(max_length=10, verbose_name='内容互动数据-浏览次数')
    aContentInteracte_View = models.CharField(max_length=10, verbose_name='内容互动数据-观看次数')
    aContentInteracte_Player = models.CharField(max_length=10, verbose_name='内容互动数据-播放次数')

    aOrderEffect_Rate = models.CharField(max_length=10, verbose_name='接单效果数据-接单率')
    aOrderEffect_ResTime = models.CharField(max_length=10, verbose_name='接单效果数据-响应时间')
    aOrderEffect_Complete = models.CharField(max_length=10, verbose_name='接单效果数据-完成率')

    aServiceEffect_ServiceScore = models.CharField(max_length=10, verbose_name='服务效果数据-服务评分')
    aServiceEffect_TotalUser = models.CharField(max_length=10, verbose_name='服务效果数据-累计用户数')
    aServiceEffect_ServiceNum = models.CharField(max_length=10, verbose_name='服务效果数据-服务数量')